package com.cjh.mybatis07.reflection.wrapper;

import com.cjh.mybatis07.reflection.MetaObject;

/**
 * @Descripton 默认对象包装工厂
 * @Author cjh
 * @Date 2023/6/2 13:51
 */
public class DefaultObjectWrapperFactory implements ObjectWrapperFactory {
    @Override
    public boolean hasWrapperFor(Object object) {
        return false;
    }

    @Override
    public ObjectWrapper getWrapperFor(MetaObject metaObject, Object object) {
        throw new RuntimeException("The DefaultObjectWrapperFactory should never be called to provide an ObjectWrapper.");
    }
}
